package com.example.librarymanagementsystem2.entity;

import lombok.Data;

@Data
public class Book {
    public void replaceByEntity(Book book)
    {
        this.filename=book.filename;
        this.bookname=book.bookname;
        this.intro=book.intro;
        this.author=book.author;
        this.press=book.press;
        this.publicationdate=book.publicationdate;
        this.stock=book.stock;
    }
    private long id;
    private String filename=null;
    private String bookname=null;
    private String intro=null;
    private String author=null;
    private String press=null;
    private String publicationdate=null;
    private String stock=null;
}
